<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>location</title>
    <script type="text/javascript">
        function method01(){
            //获取localtion对象
            location=window.location;
            //设置地址栏里的地址
            location.href='js06_01_01.html';
        }

    </script>

</head>
<body>
<a href="js06_01_01.html">页面跳转</a><br>
<a href="javascript:void(0)" onclick="method01()">页面跳转</a><br>

</body>
</html>